// 活动
import API from "./config"
export default {
  // 首页模板
  homeTemplate () {
    return API.get(`/home/homeList`)
  },
  // 获取满优惠信息
  homeFullReduceInfo (num, infoids) {
    return API.get(`/home/homeFdgList/${num}/${infoids}`) 
  },
  // 满减优惠条件
  homeFullReducesCondition (homeid) {
    return API.get(`/fullDiscounts/fullDiscountsList`, { homeid }) 
  },
  // 满减列表
  homeFullReduces (fdid, page, pageSize) {
    return API.post(`/fullDiscounts/fullGoodsList`, { fdid, page, pageSize}) 
  },
  
  // 获取首页菜单
  homeMenus (infoids) {
    return API.get(`/home/homeMenuList/${infoids}`) 
  },
  // 稀缺预售
  homeRares (infoids) {
    return API.post(`/home/homeAdvanceSaleList`, { infoids }) 
  },

  // 稀缺列表
  rares (id, page, pageSize) {
    console.log(pageSize)
    return API.post(`/advanceSale/findSaleGoodsBySale`,{id, page, pageSize}) 
  },
  // 爆单王
  burstOrders (infoids, sortType, page, pageSize) {
    return API.post(`/custom/customList`, {infoids, sortType, page, pageSize}) 
  },
  // 探索中国
  exploringChinas (infoids, page, pageSize) {
    return API.post(`/exploringChina/exploringChinaList`, {infoids, page, pageSize}) 
  },
  //探索中国详情
  exploringChinasDetail (id, sortType, page, pageSize) {
    return API.post(`/exploringChina/exploringChinaGoodsList`, { id, sortType, page, pageSize}) 
  },

  
  // 养生大礼包
  giftmains (infoids, page, pageSize) {
    return API.post(`/giftmain/giftMainList`, {infoids, page, pageSize}) 
  },

  // 大礼包详情
  giftmainDetail (id) {
    return API.get(`/giftmain/detail/${id}`) 
  },

  // 猜你喜欢
  thinkLike (page, pageSize) {
    return API.post(`/guess/getGoodsList`, { page, pageSize }) 
  }
}